/**
 * @file routes.js
 * @author
 */

import React from 'react';
import {
	Router,
	Route,
	IndexRoute,
	IndexRedirect,
} from 'dva/router';

import Main from './layouts/Main';
import rel from './routes/achievement/refresh/Home';
import tra from './routes/achievement/trade/Home';
import TraRevise from './routes/achievement/trade/Edit';
import hold from './routes/achievement/holding/Home';
import ins from './routes/achievement/instprofit/Home';
import com from './routes/achievement/combiprofit/Home';
import Login from './routes/login/Home';
import Overview from './routes/myinvestment/product/overview/Home';
import Dailysummary from './routes/myinvestment/tca/Dailysummary';
import DailysummaryTarget from './routes/myinvestment/tca/DailysummaryTarget';
import DailysummaryStrategy from './routes/myinvestment/tca/DailysummaryStrategy';
import Realtime from './routes/myinvestment/tca/realtime';
import RealtimeTarget from './routes/myinvestment/tca/RealtimeTarget';
import RealtimeStrategy from './routes/myinvestment/tca/RealtimeStrategy';
import InvestmentAnalysis from './routes/fdtAnalysis/investmentAnalysis/Home';
import RetailEducation from './routes/fdtAnalysis/retailEducation/Home';
import ReplayList from './routes/fdtAnalysis/replayList/Home';
import ReplayDetail from './routes/fdtAnalysis/replayDetail/Home';
import brinson from './routes/achievement/equity/brinson/Home';
import actmanagement from './routes/actmanagement/usermanagement/Home';
import UserRevise from './routes/actmanagement/usermanagement/UserEdit';
import UserPermission from './routes/actmanagement/usermanagement/UserPermission';
import pdtmanagement from './routes/actmanagement/productmanagement/Home';
import PdtRevise from './routes/actmanagement/productmanagement/pdtEdit';
import PdtExamine from './routes/actmanagement/productmanagement/PdtPosition';
import PdtViewTrade from './routes/actmanagement/productmanagement/PdtTrade';
import varAnalysis from './routes/specialRisk/varAnalysis/Home';
import Homeinterface from './routes/login/home/Welcome';
import Inforevise from './routes/personalset/inforevise/Home';
import pwrevise from './routes/personalset/passwordrevise/Home';
import Standard from './routes/report/standard/Home';
import Performance from './routes/report/performance/Home';
import fundPool from './routes/fundScreening/fundPool/Home';
import myAttention from './routes/fundScreening/Myattention/Home';
import Retail from './routes/fdtAnalysis/retail/Home';
import RetailEducationDetail from './routes/fdtAnalysis/retailEducationDetail/Home';
import Scheduling from './routes/task/scheduling/Home';
import SchedulingDetails from './routes/task/schedulingDetails/Home';
import AssetCS from './routes/assetAllocation/Home';
import RoleManage from './routes/systemMgt/RoleManage';
import PeriodReplay from './routes/tradeReplay/PeriodReplay';
import PrivateMge from './routes/privateMgt/privateManager/Home';
import PrivatePdt from './routes/privateMgt/privatePdt/Home';
import PrivateGame from './routes/privateMgt/privateGame/Home';
import DailyReplay from './routes/tradeReplay/DailyReplay';
import PortfolioPerformance from './routes/customerService/combinatorialAnalysis/PortfolioPerformance';
import HoldingAnalysis from './routes/customerService/combinatorialAnalysis/holdingAnalysis';
import PerformanceAttribution from './routes/customerService/combinatorialAnalysis/PerformanceAttribution';
import CombinatorialAnalysis from './routes/customerService/combinatorialAnalysis';
import benchmark from './routes/personalset/benchmarkMgt/Home';
import ResearchReport from './routes/customerService/ResearchReport'
import ResearchReportDetail from './routes/customerService/ResearchReportDetail'
import custodianEvaluation from './routes/fundAnalysis/custodianEvaluation/report/Home';
import custodianEvaluationDetail from './routes/fundAnalysis/custodianEvaluation/Detail/Home';


import TheTree from './components/TheTree'
const Page404 = () => <div>网页建设中...</div>


const routes = ({ history }) => (// eslint-disable-line
	<Router history={history}>
		<Route path="/login" component={Login} title='登录页' />
		<Route path="/retail" component={Retail} title='投顾页' />
		<Route path="/retailEducationDetail" component={RetailEducationDetail} title='文章详情' />
		<Route path="/" component={Main} >
			<Route path="welcomehtzq" component={Homeinterface} title='欢迎页' />
			<Route path='investmentSummary' title='投资概览'>
				<Route path='homePage' component={Page404} title='主页' />
				<Route path='investDashboard' component={Overview} title='投资仪表盘' />
				<Route path='investReport' component={Standard} title='投资报告'>
					<Route path=':id'  title='投资报告' />
				</Route>
			</Route>
			<Route path='tradeReplay' title='交易复盘'>
				<Route path='dailyReplay' component={DailyReplay} title='日内复盘' />
				<Route path='periodReplay' component={PeriodReplay} title='周期复盘' />
				<Route path='investReplay' component={ReplayList} title='证投复盘' />
				<Route path='investReplayDetail' component={ReplayDetail} title='复盘分析详情' />
			</Route>
			<Route path='tradeAnalysis' title='交易分析'>
				<Route path='tca' title='交易成本分析'>
					<Route path='dailySummary' component={Dailysummary} title='日终组合分析' />
					<Route path='dailySummaryTarget' component={DailysummaryTarget} title='日终标的分析' />
					<Route path='dailySummaryStrategy' component={DailysummaryStrategy} title='日终策略分析' />
					<Route path='realtime' component={Realtime} title='实时组合跟踪' />
					<Route path='realtimeTarget' component={RealtimeTarget} title='实时标的跟踪' />
					<Route path='realtimeStrategy' component={RealtimeStrategy} title='实时策略跟踪' />
				</Route>
				<Route path='ability' title='交易能力分析'>
					<Route path='replayList' component={Page404} title='复盘分析' />
					<Route path='fdtAnalysis' component={InvestmentAnalysis} title='交易员评价' />
					<Route path='couponAnalysis' component={Page404} title='券源分析' />
				</Route>
				<Route path='strategy' component={Page404} title='交易策略分析' />
			</Route>
			<Route path='achievement' title='业绩归因'>
				<Route path='hedge' title='套保类资产'>
					<Route path='refresh' component={rel} title='实时刷新' />
					<Route path='instance' component={tra} title='实例操作流水' />
					<Route path="instance/revise/:id" component={TraRevise} title='修改详情' />
					<Route path='holding' component={hold} title='实例持仓' />
					<Route path='instprofit' component={ins} title='实例盈亏' />
					<Route path='combiprofit' component={com} title='组合盈亏' />
				</Route>
				<Route path='equity' title='权益类资产'>
					<Route path='brinson' component={brinson} title='Brinson归因' />
					<Route path='style' component={Page404} title='风格归因' />
				</Route>
				<Route path='fixedIncome' title='固定收益类资产'>
					<Route path='campisi' component={Page404} title='Campisi归因' />
				</Route>
			</Route>
			<Route path='riskAnalysis' title='风险分析'>
				<Route path='riskIndicator' title='风险指标计量'>
					<Route path='marketRisk' component={Page404} title='市场风险分析' />
					<Route path='fluidityRisk' component={Page404} title='流行性风险分析' />
					<Route path='creditRisk' component={Page404} title='信用风险分析' />
					<Route path='var' component={Page404} title='VaR' />
				</Route>
				<Route path='scenarioSimulation' component={Page404} title='情景模拟' />
				<Route path='abnormalTrade' component={Page404} title='异常交易稽核' />
			</Route>
			<Route path='subjectAnalysis' title='标的分析'>
				<Route path='pricingAnalysis' title='定价分析'>
					<Route path='optionPricing' component={Page404} title='期权定价分析' />
					<Route path='bondsPricing' component={Page404} title='债券定价分析' />
				</Route>
				<Route path='ratingsAnalysis' title='评级分析'>
					<Route path='fundRatings' component={Page404} title='基金评价分析' />
					<Route path='bondsRatings' component={Page404} title='债券评级分析' />
				</Route>
			</Route>
			<Route path='dueDiligenceMgt' title='尽调管理'>
				<Route path='custodianHomePage' component={Page404} title='管理人首页' />
				<Route path='custodianStatistics' component={Page404} title='管理人池统计' />
				<Route path='researcherHomePage' component={Page404} title='投研人员首页' />
				<Route path='corePool' component={Page404} title='核心池评级' />
				<Route path='dueDiligenceInput' title='尽调文档录入'>
					<Route path='investmentCapacity' component={Page404} title='投资能力评估录入' />
					<Route path='operationalRisk' component={Page404} title='运营风险评估录入' />
					<Route path='doocumentMgt' component={Page404} title='尽调文档管理' />
					<Route path='doocumentIput' component={Page404} title='公募尽调文档录入' />
				</Route>
				<Route path='custodianInfo' component={Page404} title='管理人详情' />
				<Route path='fundManagerInfo' component={Page404} title='基金经理详情' />
				<Route path='custodianAndPdtMgt' component={Page404} title='管理人及产品管理' />
			</Route>
			<Route path='fundScreen' title='基金筛选'>
				<Route path='myAttention' component={myAttention} title='我的关注' />
				<Route path='fundPool' component={fundPool} title='基金池' />
				<Route path='optionalPoolMgt' component={Page404} title='自选池管理' />
				<Route path='achievementSummary' component={Page404} title='业绩汇总' />
				<Route path='optionalAchievementCompare' component={Page404} title='自选池区间业绩比较' />
				<Route path='corePoolEvaluation' component={Page404} title='核心池业绩考评' />
				<Route path='analogCombination' component={Page404} title='研究团队模拟组合' />
				<Route path='marketSummary' component={Page404} title='全市场概览' />
			</Route>
			<Route path='fundAnalysis' title='基金分析'>
				<Route path='custodianEvaluation' component={custodianEvaluation} title='管理人评估报告' />
				<Route path='custodianEvaluationDetail' component={custodianEvaluationDetail} title='管理人评估报告详情' />
				<Route path='fundAnalysisReport' component={Page404} title='基金分析报告' />
				<Route path='custodianStyle' component={Page404} title='管理人风格研究' />
			</Route>
			<Route path="assetAllocation" title='资产配置'>
				<Route path="assetSimulation" component={AssetCS} title='资产配置模拟' />
				<Route path="pressureTest" component={Page404} title='压力测试' />
				<Route path="assertRecall" component={Page404} title='配置方案回溯' />
				<Route path="combineAssertReport" component={Page404} title='组合配置报告' />
				<Route path="privateOpinion" component={Page404} title='私募观点' />
			</Route>
			<Route path="postInvestmentAnalysis" title='投后分析'>
				<Route path="equityAssets" component={Page404} title='权益类资产归因' />
				<Route path="standardAnalysisReport" component={Standard} title='标准分析报告' />
			</Route>
			<Route path="customerService" title='客户服务'>
			
				<Route path="combinatorialAnalysis" component={CombinatorialAnalysis} title='组合分析' />
				<Route path="researchReport" component={ResearchReport} title='投研报告'/>
				<Route path="researchReportDetail" component={ResearchReportDetail} title='投研报告详情'/>
			</Route>
			<Route path='personalSettings' title='个人设置'>
				<Route path='infoRevise' component={Inforevise} title='个人信息修改' />
				<Route path='passwordRevise' component={pwrevise} title='个人密码修改' />
				<Route path='subscription' component={Page404} title='个人订阅' />
				<Route path='benchmarkMgt' component={benchmark} title='基准管理' />
			</Route>
			<Route path='systemMgt' title='系统设置'>
				<Route path='accountMgt' title='权限管理'>
					<Route path='userMgt' component={actmanagement} title='用户管理' />
					<Route path="userMgt/revise" component={UserRevise} title='修改详情' />
					<Route path="userMgt/permission" component={UserPermission} title='产品权限' />
					<Route path='pdtMgt' component={pdtmanagement} title='产品管理' />
					<Route path='pdtMgt/revise' component={PdtRevise} title='修改详情' />
					<Route path='pdtMgt/examine' component={PdtExamine} title='持仓列表' />
					<Route path='pdtMgt/viewtrade' component={PdtViewTrade} title='交易列表' />
					<Route path='menuMgt' component={RoleManage} title='菜单管理' />
				</Route>
				<Route path='operationMgt' title='运维管理'>
					<Route path='taskMgt' component={Scheduling} title='定时任务管理' />
					<Route path='taskMgtDetails' component={SchedulingDetails} title='单个定时任务' />
					<Route path='monitoring' component={Page404} title='系统实时监控' />
					<Route path='statusAnalysis' component={Page404} title='系统运行状态分析' />
				</Route>
				<Route path='/match' title='私募大赛'>
					<Route path='matchManager' component={PrivateMge} title='私募管理人' />
					<Route path='matchProduct' component={PrivatePdt} title='私募产品列表' />
					<Route path='matchList' component={PrivateGame} title='私募比赛' />
				</Route>
				<Route path='customPage' component={Page404} title='自定义页面01' />
			</Route>
		</Route>

	</Router>
);

export default routes;
